/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const orderRouter = {
  path: '/order',
  component: Layout,
  redirect: 'noRedirect',
  name: 'orderDemo',
  mode:'history',
  meta: {
    title: '订单管理',
    icon: 'component'
  },
  children: [{
      path: 'index',
      component: () => import('@/views/order/index'),
      name: 'orderIndex',
      meta: {
        title: '订单查询'
      }
    },
    {
        path: 'index/:customer_id',
        component: () => import('@/views/order/index'),
        name: 'orderIndexMerchant',
        meta: {
          title: '订单查询'
        },
        hidden:false
      },
    {
      path: 'first',
      component: () => import('@/views/order/first'),
      name: 'orderFirst',
      meta: {
        title: '初审订单'
      }
    }, {
      path: 'letter',
      component: () => import('@/views/order/letter'),
      name: 'orderLetter',
      meta: {
        title: '信审订单'
      }
    }, {
      path: 'sign',
      component: () => import('@/views/order/sign'),
      name: 'orderSign',
      meta: {
        title: '签约订单'
      }
    }, {
      path: 'refund',
      component: () => import('@/views/order/refund'),
      name: 'orderRefund',
      meta: {
        title: '退款订单'
      }
    }, {
      path: 'operation',
      component: () => import('@/views/order/operation'),
      name: 'orderOperation',
      meta: {
        title: '术后订单'
      }
    }, {
      path: 'detail/:order_id',
      component: () => import('@/views/order/detail'),
      name: 'orderDetail',
      meta: {
        title: '订单详情'
      },
      hidden:true
    }, {
      path: 'editorder/:order_id',
      component: () => import('@/views/order/editorder'),
      name: 'editorder',
      meta: {
        title: '订单修改'
      },
      hidden:true
    }

  ]
}

export default orderRouter
